<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>添加广告</title>
    <hdjs />
    <js file= '__PUBLIC__/js/mod.base.js,__PUBLIC__/js/mod.ad.js' />
    <css file= '__PUBLIC__/css/mod.base.css' />
</head>
<body>
    <form action="" method="post" class="hd-form" name="form" enctype='multipart/form-data' >
        <div class="hd-menu-list">
            <ul>
                <li >
                    <a href="{:U('Ad/index',array('verifystate'=>$_GET['verifystate']))}">广告列表</a>
                </li>
                <li class="active">
                    <a href="javascript:;">添加广告</a>
                </li>
            </ul>
        </div>
        <div class="hd-title-header">添加广告</div>
        <div class="right_content">
            <table class="hd-table hd-table-form" >
                <tbody>
                    <tr>
                        <th class="hd-w100">
                            广告位置
                            <span class="star">*</span>
                        </th>
                        <td>
                            <select name="position_psid" >
                                <option value="0">请选择广告位置</option>
                                <foreach name='position' item='v'>
                                    <option value="{$v.psid}" <if condition='$v["psid"] eq $_GET["psid"]'>selected='selected'</if>>{$v.position_name} <if condition='$v["width"] && $v["height"]'>[{$v.width}×{$v.height}]</if></option>
                                </foreach>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th class="hd-w100">
                            广告名称
                            <span class="star">*</span>
                        </th>
                        <td>
                            <input type="text" name="name" class="hd-w200">
                        </td>
                    </tr>
                    <tr>
                        <th class="hd-w100">
                            (英)广告名称
                        </th>
                        <td>
                            <input type="text" name="name_en" class="hd-w200">
                        </td>
                    </tr>
               <!--      <tr>
                        <th class="hd-w100">
                            说明
                            <span class="star">*</span>
                        </th>
                        <td>
                           <textarea name="info" class="hd-w500 hd-h50"></textarea>
                        </td>
                    </tr> -->
                    <tr>
                        <th class="hd-w100">
                            排序
                            <span class="star">*</span>
                        </th>
                        <td>
                            <input type="text" name="sort" class="hd-w200" value='100' />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            审核
                            <span class="star">*</span>
                        </th>
                        <td>
                            <label >
                                <input name="verifystate" type="radio"  value="1" />
                                审核中
                            </label>&nbsp;&nbsp;
                            <label >
                                <input checked="checked" name="verifystate" type="radio" value="2" />
                                通过
                            </label>
                        </td>
                    </tr>
                    <tr>
                        <th class="hd-w100">
                            广告链接
                        </th>
                        <td>
                            <textarea name="url" class='hd-w500 hd-h50'></textarea>
                        </td>
                    </tr>
                    
                    <tr>
                        <th class="hd-w100">
                            广告图片
                        </th>
                        <td>
                            <input type="file" name="pic" />
                        </td>
                    </tr>
                     <tr>
                        <th class="hd-w100">
                            (英)广告图片
                        </th>
                        <td>
                            <input type="file" name="pic_en" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <input type="submit" value="添加" class="hd-btn hd-btn-sm">
        <input type="button" value="返回" class="hd-btn hd-btn-sm" onclick="location.href='{:U('Model/index')}'">
        </form>

</body>
</html>